<div class="vehicles view">

<h2><?php  __('Vehiculo');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
	<div class="columna1">
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modelo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php echo ($vehicle['Models']['descripcion']); ?>
			&nbsp;
		</dd>
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Marca'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
		&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php echo ($brands[$vehicle['Models']['brands_id']]); ?>
			&nbsp;
		</dd>
		
	</div>
	
	<div class="columna2">
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tipo de Vehiculo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php echo ($vehicle['VehiclesTypes']['descripcion']); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dominio Extranjero'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php echo($vehicle['Vehicle']['extranjero'] == '0' ) ? 'No' : 'Si';  ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dominio Completo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php switch ($vehicle['Vehicle']['dom_parcial']) {
                                case 0:
                                    echo "No";
                                    break;
                                case 1:
                                    echo "Si";
                                    break;
                                case 2:
                                    echo "Ilegible";
                                    break;
                                case 3:
                                    echo "No Posee";
                                    break;
                                 } ?>
			&nbsp;
		</dd>
		
	</div>
	
	
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dominio'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php echo $vehicle['Vehicle']['dominio']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('N° de Motor Completo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php switch ($vehicle['Vehicle']['motor_parc']) {
                                case 0:
                                    echo "No";
                                    break;
                                case 1:
                                    echo "Si";
                                    break;
                                case 2:
                                    echo "Ilegible";
                                    break;
                                case 3:
                                    echo "No Posee";
                                    break;
                                 }?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('N° Motor'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php echo $vehicle['Vehicle']['nro_motor']; ?>
			&nbsp;
		</dd>
                		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('N° de Chasis Completo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php switch ($vehicle['Vehicle']['chasis_parc']) {
                                case 0:
                                    echo "No";
                                    break;
                                case 1:
                                    echo "Si";
                                    break;
                                case 2:
                                    echo "Ilegible";
                                    break;
                                case 3:
                                    echo "No Posee";
                                    break;
                                 }?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('N° Chasis'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php echo $vehicle['Vehicle']['nro_chasis']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Observaciones'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php echo $vehicle['Vehicle']['observaciones']; ?>
			&nbsp;
		</dd>
	
	</dl>
</div>
<div class="actions">
	<h3><?php __('Acciones'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Editar Vehiculo', true), array('action' => 'edit', $vehicle['Vehicle']['id'])); ?> </li>
<!--		<li><?php// echo $this->Html->link(__('Borrar Vehiculo', true), array('action' => 'delete', $vehicle['Vehicle']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vehicle['Vehicle']['id'])); ?> </li>-->
<!--		<li><?php//echo $this->Html->link(__('Listar Vehiculos', true), array('action' => 'index')); ?> </li>-->
<!--		<li><?php// echo $this->Html->link(__('Nuevo Vehiculo', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Modelos', true), array('controller' => 'models', 'action' => 'index')); ?> </li>-->
		<li><?php echo $this->Html->link(__('Nuevo Modelo', true), array('controller' => 'models', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Tipos de Vehiculos', true), array('controller' => 'vehicles_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo Tipo de Vehiculo', true), array('controller' => 'vehicles_types', 'action' => 'add')); ?> </li>
	</ul>
</div>
